
cmake_minimum_required (VERSION 2.8)

project (lib_system_monitor CXX )

SET(CMAKE_BUILD_TYPE "Debug")

include_directories("${PROJECT_SOURCE_DIR}" "/home/lzh/lzh/code/seirios_dev/libvpe/vpi/inc")

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} DIR_SRCS)

add_library(sysmonitor SHARED ${DIR_SRCS} )
#add_library(sysmonitor SHARED ${DIR_SRCS} )


LINK_DIRECTORIES("/usr/lib/vpe")
link_libraries(vpeencode)

#add_executable(system_monitor ${DIR_SRCS})

project (system_monitor C )
set(CMAKE_C_STANDARD 99)
add_executable(system_monitor main.c)
#link_libraries(sysmonitor)
target_link_libraries(system_monitor ${PROJECT_BINARY_DIR}/libsysmonitor.so /usr/lib/vpe/libvpeencode.so)

